Measurement of the de Haas-van Alphen effect in YBa2Cu3O6.97 using megagauss fields