On Maximal Extensions of Nilpotent Lie Algebras