Resonant reflection of shallow-water waves due to corrugated boundaries