Determination of sea conditions for wave energy conversion by spectral analysis