Aligned AlN nanowires and microrods by self-patterning