Fundamentals of impact dynamics of semi-infinite and layered solids