M2 BeamSquared for Analysis of Laser Beam Propagation