Perturbative approach to the polaron shift of excitons in transition metal dichalcogenides