Binding energies and oscillator strengths of excitons in shallow quantum wells