Electronic structure and spin trapping in LiMnAs and LiFeAs:Mn