A duality-based approach to identification of linear time-varying systems