The interaction between a magnetized plasma flow and a magnetized celestial body: A review of magnetospheric studies