by measuring electrical or magnetic effects thereof