Strengths of boron nanowires and carbon nanotubes