FDA greenlights first 'smart' pill