A Kullback-Leibler divergence method for input-system-state identification