Controlling pressure brakes of railway vehicles