add eofs method to castcollection

computes EOFs, returning the structure functions, the eigenvalues, and the
spatial functions (eigenvectors)