jim carrey playing legolas in lord of the rings