An equation of state for asymmetric nuclear matter and the structure of neutron stars