Positron diffusion in solids and the reconstruction of inhomogeneous defect distributions from lifetime measurements