An inverse procedure for the reconstruction of the height-dependent attenuation function for lightning return stroke