Mechanisms of Self-Ordering of Quantum Nanostructures Grown on Nonplanar Surfaces