Electrical characterization and cathodoluminescence microanalysis of AlN/GaN heterostructures