Substation automation and control in railway networks