The effect of foreshore slope on breakwater stability