Short-range order in crystalline, amorphous, liquid, and supercooled germanium probed by x-ray absorption spectroscopy