Euro zone, IMF reach agreement on long-term Greek debt