Excitons in near-surface quantum wells in magnetic fields: Experiment and theory