Sparse-then-dense alignment-based 3D map reconstruction method for endoscopic capsule robots