Patterned growth of aligned ZnO nanowire arrays on sapphire and GaN layers