Atomic and electronic structure and chemical reactivity of metal clusters