On the propagation of topographically trapped waves