A four-dimensional Hooke's law can encompass linear elasticity and inertia