Electrical circuits and compensations