Lattice dynamics in GaN and AlN probed with first- and second-order Raman spectroscopy