A microscopic equation of state for protoneutron stars