Thermally-compensated bending gauge using surface-mounted fibre gratings