Neutrino astrophysics with IceCube