Optical emission of GaN/AlN quantum-wires-the role of charge transfer from a nanowire template