Algorithms for rapid automated tracing of neurons from two-dimensional and three-dimensional confocal images: application to nano-biotechnology