Optimal Power Flow with Substation Reconfiguration