Gravar-mail: Potential formula of the nonregular m × n fan network and its application