Unified equation of state for neutron stars on a microscopic basis