On the general problem of solution and stability for variable-time switched systems