The influence of crystal thickness on scattering and radiation of high-energy electrons in oriented crystals