Title: A systems approach to the design of lock-in amplifiers