Atomic and electronic structure of free niobium nanoclusters: Simulation of the M4,5-XANES spectrum of Nb13+