Surface and interface properties of quantum nanostructures grown on nonplanar substrates