Switching effect in beta-rhombohedral boron