A closed-form model for torsion of nanobeams with an enhanced nonlocal formulation