Structure, point defects and ion migration in LaInO3