X-ray spectral and flux variability of the microquasar GRS 1758−258 on timescales from weeks to years