The Mg II index: A proxy for solar EUV