Similar Items: SMT-Based Active Learning of Weighted Automata