John Legend to perform anthem at NBA Finals