Substation automation: Principles and practices