First smartphone app to detect opioid overdose and its precursors