The structure of thin Lie algebras with characteristic two