On shelf-sea ‘resonance’ with application to Brazilian M3 tides