Mike McCarthy to undergo surgery for appendicitis