Gravar-mail: A General Method to Determine Ionization Constants of Responsive Polymer Thin Films