Gravar-mail: Optimization for customized trajectories in cone beam computed tomography