Comparison of ND : YAG laser beam quality between free running and Q-switched modes