Limit cycles of cubic polynomial differential systems with rational first integrals of degree 2