Metal-non-metal transition in heterostructures with thick spacer layers