trench railway technology was first developed by the following nation