Limit cycles for a class of fourth-order autonomous differential equations