An all-solid-state reference electrode