Molecular-beam epitaxy on shallow mesa gratings patterned on GaAs(311)A and (100) substrates