Energy Decompositions for Moist Boussinesq and Anelastic Equations with Phase Changes