Tensor-based basis function learning for three-dimensional sound speed fields.