An Algorithm for Automatic Acoustic Alarm Recognition in the Neonatal Intensive Care Unit