Controlling crystal phases in GaAs nanowires grown by Au-assisted molecular beam epitaxy