The rigid limit of N = 2 supergravity