A methodology to evaluate wave energy resources in shallow waters