Trapped modes in topographically varying elastic waveguides