Trajectory optimization for the planning of percutaneous radiofrequency ablation on hepatic tumors