A stability criterion for linear time-varying systems