Lost billions, graft probes, and broken dreams are the result of over-ambitious goals to build a leading chip sector.