Temperature-dependent x-ray absorption spectroscopy of colossal magnetoresistive perovskites