Role of Bi/Tm substitution in Bi-2212 system on crystal structure quality, pair wave function and polaronic states