the most complete surviving version of the original epic is derived from twelve stone tablets , discovered among the ruins of the great library in nineveh , after it had been destroyed by the persians in 612 bc .