Exchange Interactions and Magnetic Susceptibilities of Ni2+ in KMgF3 and K2MgF4