Why some electric trains use a third rail, and others don't