Single-walled carbon nanotubes in tetrahydrofuran solution: microsolvation from first-principles calculations