Detection of railway train's brake