A decade ago, investors thought Greece would flourish on the euro. Money poured in, and banks started lending it out.