Optimal Control for Active Identification of Unknown Systems