Molecular magneto-ionic proton sensor in solid-state proton battery