Atomistic modelling of defect passivation in polycrystalline CdTe photovoltaics