Three-dimensional path planning for autonomous underwater vehicles based on a whale optimization algorithm