Monitoring respiratory function during neonatal resuscitation