Quantum chemistry study on the open end of single-walled carbon nanotubes