Diaries detailing life in World War One trenches made available online