Idempotent states on compact quantum groups and their classification on U_q(2), SU_q(2), and SO_q(3)