Analysis of the nearshore wave energy resource