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