Path planning for autonomous ships