Simultaneous monitoring of acidity and intercalation for layered transition metal oxides in liquid media.