Alex Garland's Ex Machina is a smart, gripping sci-fi film that explores the nature of artificial intelligence and humanity.