Magnetic order effects on the electronic structure of KMMnS2 (M=Cu, Li) with the ThCr2Si2-type structure