PlasticityNet: Learning to Simulate Metal, Sand, and Snow for Optimization Time Integration