Application of Diffraction Gratings to Measurement of Strain of Dental Materials