Scattering of antiplane impact waves by cracks in a layered elastic solid