Direct inversion from partial-boundary data in electrical impedance tomography