Mn-doped silicon nanowires: First-principles calculations