Revealing polytypism in 2D boron nitride with UV photoluminescence