What is the primary purpose of a Continuous Emissions Monitoring System (CEMS) at a regulated facility?