Adaptive weighted least squares method for the estimation of DNA fragment lengths from agarose gels