which harry potter film did robert pattinson star in?