The first railways in Thuringia had been built in the 1840s and the network of main lines was finished around 1880. When were most of the branch lines of the railway abandoned?