Detailed investigation of the channeling phenomena involved in bending of high-energy beams by means of crystals