A Paley-Wiener theorem for frames