Scattering of flexural–gravity waves at the boundaries between three floating sheets with applications