Structure of root graded Lie algebras