How to design a Gaussian to Top Hat beam shaper