On the analysis of EBIC contrast of crystal defects