Dielectric function spectra of GaN, AlGaN, and GaN/AlGaN heterostructures