First-principle study on energetics and electronic structure of a single copper atomic chain bound in carbon nanotube