Localized wave and vortical solutions of linear hyperbolic systems and their application to the linear shallow water equation