In-plane optical polarization and dynamic properties of the near-band-edge emission of an m-plane freestanding AlN substrate and a homoepitaxial film