Having child out of wedlock does not bar access to sacraments, Vatican says