Variational analysis of waveguide lasers based on Gaussian/two-half Gaussian mode field distribution