Wave-ice interactions in the marginal ice zone. Part 1: Theoretical foundations