A facile route to carbide-based electrocatalytic nanocomposites