Power flow controller design for planning stage railway systems