Electrical resistivity and optical absorption in EuLiH3 and SrLiH3