Development of a model fiber-optic sensor of the external action on the basis of diffraction gratings with variable parameters of the system