Algorithm for Automatic Forced Spirometry Quality Assessment: Technological Developments