Electronic and magnetic structures of chain structured iron selenide compounds