Global well-posedness for the primitive equations coupled to nonlinear moisture dynamics with phase changes