Effect of layer size on lattice distortion in strained‐layer superlattices