Detection of Cylindrical and Spherical Surfaces and Determining Their Parameters in Segmentation of Range Images