A new approach to modelling Kelvin probe forcemicroscopy of hetero-structures in the darkand under illumination