Cartan matrices for restricted Lie algebras