Layer-dependent band engineering of Pd dichalcogenides: a first-principles study