Polarized X-ray absorption study of Bi2Sr2CuO6 and Bi2Sr2CaCu2O8