Λ c N interaction from lattice QCD and its application to Λ c hypernuclei