Limit cycles for a class of third-order differential equations