A Cognitive Model of Trust for Biological and Artificial Humanoid Robots