Residual strain of a Cr film characterized by micromachined beams