Realization of spirometry measurement using EIT