Thickness effect on the extended-x-ray-absorption-fine-structure amplitude