Stability conditions for preprojective algebras and root systems of Kac-Moody Lie algebras