Synthesis and photoluminescence of single-crystalline GaN nanowires and nanorods