Switching phenomena in amorphous thin films of Ge, Cd x Te y and Sb x Se y