Electronic correlation and geometrical frustration in molecular solids: A systematic ab initio study of β′−X[Pd(dmit)2]2