Analysis of the generalized elliptical waveguide by separation of variables