Compositional inhomogeneities in AlGaN thin films grown by molecular beam epitaxy: Effect on MSM UV photodetectors