Structural and spectroscopic insights into the mechanism of oxalate oxidase