Relationship between quantum walks and relativistic quantum mechanics