Detecting opioid overdoses with smartphones