Atomic and electronic structures of domain boundaries in LaTiO3 thin films