Theoretical comparison of the FETI and algebraically partitioned FETI methods, and performance comparisons with a direct sparse solver