Gravar-mail: A geometrical approach to computing free-energy landscapes from short-ranged potentials