Three dimensional carbon substrate materials for electrolysis of water