Conversion of residues and by-products from the biodiesel industry into value-added products