Reverse engineering supercapacitors