Modelling nearshore waves with the presence of shore-parallel breakwaters