Muammar Gaddafi elected chairman of the African Union