Band structure and optical absorption of GaN nanowires grown along the c axis