Robert Pattinson, The Batman