Surface emission from neutron stars and implications for the physics of their interiors