From the Sun to the Earth : impact of the 27-28 May 2003 solar events on the magnetosphere, ionosphere and thermosphere