In Situ Determination of Gravimetric and Volumetric Charge Densities of Battery Electrodes Polyaniline in Aqueous and Nonaqueous Electrolytes