Control of GaAs nanowire morphology and crystal structure