A long-period fibre grating monitor of respiratory volumes for the use in non-invasive mechanical ventilation