Optimal Causal Control of a Wave Energy Converter in a Random Sea