Enhanced terahertz emission from GaAs and GaAs-MnAs nanowires