Laser system in an unstable optical resonator arrangement providing a shaped output beam intensity profile and the method of forming it