IceCube and the discovery of high-energy cosmic neutrinos