Discrimination between strain and temperature effects using first and second-order diffraction from a long-period grating