Magnetic monopoles on three-manifolds