Density-functional calculations for prototype metal-boron nanotubes