Predicting dislocations and grain boundaries in two-dimensional metal-disulfides from the first principles.