Ab initio derivation and exact diagonalization analysis of low-energy effective Hamiltonians for β′−X[Pd(dmit)2]2