N=2 supergravity counterterms, off and on shell