Tuning the crystal structure and optical properties of selective area grown InGaAs nanowires