Madelung Constant of the Tetragonal K2NiF4 Type Oxides