Negative thermal expansion in CuCl: An extended x-ray absorption fine structure study