The decision to include a version of the late actor in a film marks one of the boldest uses yet of artificial intelligence in movie-making.