Monitoring of breathing with a segmental air-filled mattress