Using SAT and SMT Solvers for Finite Model Finding with Sorts