Closed form gaussian beam analysis of resonators containing a Kerr medium for femtosecond lasers