Alex Garland's Ex Machina is an elegant sci-fi fantasy about artificial intelligence.