Magnetic Field Induced Metal-Nonmetal Transition in GaAs-GaAlAs Heterostructures with a Spacer