Statistical analysis of movements of the ionospheric trough and the plasmapause