Sampled DC technique for high precision resistance measurements