Quasi-optical beam waveguide analysis using frame based Gaussian beam expansion