Relativistic Hartree approach with exact treatment of vacuum polarization for finite nuclei