Railroads’ earnings turmoil deepens as trucks poach freight