A Simple Method to Compute the Response of Non-Homogeneous and Irregular Interfaces: Electrodes and Membranes