Generalized eddy-diffusivity mass-flux (GEM) formulation for the parameterization of atmospheric convection and turbulence