write_basis_tqn function

Generate a basis file using TARQUIN.