Who wrote the opera first performed on 26 October 1786 at the medieval castle and subsequent palace which served as a residence for the French monarchs from Louis VII to Napoleon III?