Lights, camera, algorithm: How artificial intelligence is being used to make films