Modified gravity with vacuum polarization