The three-nucleon problem with the square-well potential