Classical Resolution for Many-Valued Logics