SILIA: software implementation of a multi-channel, multi-frequency lock-in amplifier for spectroscopy and imaging applications