Stabilizability of affine switching systems: A Kalman-like approach