Toeplitz operators on Dirichlet spaces