Mechanically modulating the photophysical properties of fluorescent protein biocomposites for ratio- and intensiometric sensors.