Cavity-ring-down spectroscopy on the oxygen A band in magnetic fields up to 20 T