Calculated magnetic exchange interactions in the quantum spin chain materials K2CuSO4Cl2 and K2CuSO4Br2