Gravar-mail: Energy minimization on manifolds for docking flexible molecules