The electronic structures of LaSn3 and LaIn3