Verification and synthesis for stochastic systems with temporal logic specifications