Museveni declared winner of Uganda election, extending rule beyond 40 years