Panthers WR Smith agrees to 3-year extension