Algebraic limit cycles for quadratic polynomial differential systems