Can artificial intelligence be emotionally intelligent? In Boston, researchers have programed BB-8, the little droid from “Star Wars: The Force Awakens,” to detect expressions and determine how people are feeling. And that technology is being adapted for marketing, video games,…