Movement imitation mechanisms in robots and humans