Ionospheric signatures of magnetospheric processes