Electronic structure and magnetic properties of the Fe16N2 doped with Ti