Variations of the physical parameters of the blazar Mrk 421 based on analysis of the spectral energy distributions