Revivals of wave packets: General theory and application to Rydberg clusters.