Construction of a local K¯N−πΣ−πΛ potential and composition of the Λ(1405)