Measurement of stress factors and residual stress of a film by in situ X-ray diffraction during four-point bending