Transition metal doped MnO2 nanosheets grown on internal surface of macroporous carbon for supercapacitors and oxygen reduction reaction electrocatalysts