Theoretical study of building blocks for molecular switches based on electrically induced conformational changes