Moisture Battery Formed by Direct Contact of Magnesium with Foamed Polyaniline.