ABCD matrix analysis of propagation of gaussian beams through Kerr media