Modelling wave–ice interactions in three dimensions in the marginal ice zone