A laboratory course on detector readout for undergraduate students of experimental physics