On a family of polynomial differential equations having at most three limit cycles