Idempotent functors and nilpotent spaces