Dielectric function of wurtzite GaN and AlN thin films