AI system detects posts by foreign 'trolls' on Facebook and Twitter