When was the magic flute finished composing?