Qatar bids farewell to former emir Sheikh Hamad bin Khalifa