Tuning the configuration of quantum dot molecules grown on stacked multilayers of heteroepitaxial islands