Global–local model for three-dimensional guided wave scattering with application to rail flaw detection