Rattling ions and the anomalous vibrational dynamics of glasses