Characterization of aluminium nitride thin film structure using second-harmonic generation