Monitoring of respiratory and heart rates using a fibre-optic sensor