Analysis of frequency stability of 16.7 Hz railways