Structural insights into the mechanism of amine oxidation by monoamine oxidases A and B