Effects of the two-body and three-body hyperon-nucleon interactions in Λ hypernuclei