How Is Wave Energy Generated