Planning for Hybrid Systems via Satisfiability Modulo Theories