Mikhail Gorbachev leaves behind a complicated and contentious legacy: analysis