Thermodynamic Study on the Interaction of Nicotinic Acid with H+, Na+, Ca2+ and Mg2+ at Different Temperatures and Ionic Strengths