Union Pacific posts soft quarterly profit, shares sink