Automatic peak detection in chromatography