Quantum confinement effect in nanostructured AlN films