Modified Stranski-Krastanov growth in stacked layers of self-assembled cubic GaN/AlN quantum dots