cell and subpanel resistance modelling