Device for producing electricy from flows of liquid fluids