Experimental tests of the electroweak theory at LEP and SLD