Mathematical modelling of wave–structure interactions with application to wave energy conversion