Charge transfer process in Tl2Ba2Ca2Cu3O10 and Tl2Ba2CaCu2O8 thin films probed by polarized X-ray absorption spectroscopy