Flexible mechanical sensors with photoelectric dual-signal outputs based on bio-inspired mechanoresponsive photonic crystals | Synapse