Moist adiabats with multiple condensing species: A new theory with application to giant planet atmospheres