Problems associated with the thin-film Ag/AgCl reference electrode and a novel structure with improved durability