Distribution of methanol and catalysts between biodiesel and glycerin phases