Explicitly correlated second-order perturbation theory using density fitting and local approximations.