Structure of crystalline and amorphous Ge probed by X-ray absorption and diffraction techniques