Embodying mechano-fluidic memory in soft machines to program behaviors upon interactions