The preparation in situ of a silver–silver chloride reference electrode