Confining MoS2 nanocrystals in MOF-derived carbon for high performance lithium and potassium storage