Structure elucidation and characterization of patulin synthase, insights into the formation of a fungal mycotoxin