Manipulation of Internal Chemistry of Electrode Materials for Energy Storage and Conversion