LIBSVM: A Library for Support Vector Machines