Magnetic quantum oscillations in quasi-two-dimensional metals