Strained film deposition on thin substrates: Resulting internal strains with an application to prestrained and preshaped multilayered membranes for a soft‐x‐ray window