Excitonic and deep-level emission from N- and Al-polar homoepitaxial AlN grown by molecular beam epitaxy