Finite-Size Effects of Surface Tension in Two Segregated BECs Confined by Two Hard Walls