Comparison of beam generation techniques using a phase only spatial light modulator