‘China offered weapons to Gaddafi to fight rebels in final months of his regime’