Dose distribution measurements by means of gel-layer dosimeters. Evaluation of algorithms for artifacts amendment