Spectra of the spreading layers on the neutron star surface and constraints on the neutron star equation of state