EXHIBIT 10.1 STOCK PURCHASE AGREEMENT dated as of July 2, 1999 by and between C.P. CLARE CORPORATION, a Massachusetts corporation,