A Software-Based Lock-In Measurement for Student Laboratories