Partnership between KC nonprofit, software company attracts funding for new long-term substance abuse facility