A criterion on oscillation and variation for the commutatorsof singular integral operators