Rice grains’ unusual response inspires ‘smart’ material