Factors affecting the adoption of information and communication technologies in teaching