Why is alternating current used for measuring the resistance of an electrolytic solution?