What is a pulse oximeter and how does it work?