Electronic and dynamic studies of boron carbide nanowires