which harry potter movie did robert pattinson act in?