Stimuli-responsive metamaterials with information-driven elastodynamics programming