CAPNEX: an expert system for capnography (CO2 respiration analysis)