Tunisia bids farewell to president Essebsi at state funeral