Fix compatibility to numpy without rfftfreq.

Fixes #599.
Can we just use this implementation? That way a) it avoids the `hasattr` check and b) it's easier to ensure consistency across Numpy versions (if for some reason the Numpy version were to change).