An opera containing a scene in which the severed head of the Prophet Muhammad is depicted has opened under heavy security in Germany's capital, Berlin.