The McKay correspondence and geometric engineering