First-principles study of MoS2 and MoSe2 nanoclusters in the framework of evolutionary algorithm and density functional theory