A former church warden jailed for murdering a university lecturer has had his conviction quashed by the Court of Appeal.