margot robbie starring as Hermione in harry potter