Prediction of nearshore wave transformation