Pyroelectric and electrooptic effects in LiInS2 and LiInSe2