Cluster observations of fast magnetosonic waves in the terrestrial foreshock