Ionospheric and magnetospheric plasmapauses