New, scalable methods synthesize two-dimensional carbide and nitride materials