Scarlett Johansson felt ‘a little restrained’ working on Marvel films