Development of a carbon foam supercapacitor electrode from resorcinol–formaldehyde using a double templating method