A description of pseudo-bosons in terms of nilpotent Lie algebras