An energetically consistent vertical mixing parameterization in CCSM4