Ahead of her Frick Collection commission and Hauser & Wirth show, the UK artist describes how she combines art-historical movements, fantasy novels and new tech