Strain relaxation in (0001) AlN/GaN heterostructures