Methods, techniques and algorithms for condition based maintenance of railway vehicles