Scalable solution-phase routes to carbides