Integrated mechanical computing for autonomous soft machines | Synapse