The nuclear physics of neutron stars