How not-for-profits are adapting to a technological revolution