Toxic event detection by respirometry and adaptive principal components analysis