Cyclical hydrogen storage and retention in polyaniline