Quasi-two-dimensional excitons in finite magnetic fields