Simultaneous observation of Pc 3–4 pulsations in the solar wind and in the Earth's magnetosphere