Nanoflaky MnO2/functionalized carbon nanotubes for supercapacitors: an in situ X-ray absorption spectroscopic investigation.