Optimisation of neonatal ventilation and resuscitation