Fundamentals of the “lock-in” technique and its application to solar cell characterization