On finite dimensional Nichols algebras of diagonal type