How to model laser beam propagation in OpticStudio: Part 1 - Gaussian beam theory and ray-based approach