49ers advance to Super Bowl XLVII