Sample preparation and testing of three-electrode and two-electrode supercapacitor materials