Ugandan academic freed after wrongful conviction