Approximately dual frame pairs in Hilbert spaces and applications to Gabor frames