Mind Meets Machine: Towards a Cognitive Science of Human–Machine Interactions