Measuring pulmonary function in infancy