A manuscript in which Albert Einstein prepared his theory of general relativity has sold at auction in Paris for a record €11.6 million.