Quantitative description of the properties of extended defects in silicon by means of electron- and laser-beam-induced currents