Structural and magnetic transitions in the planar antiferromagnet Ba4Ir3O10