Smart pill confirms when medication is swallowed