how electric telegraph improved warfare