Optimization of ionic liquid assisted sugar conversion and nanofiltration membrane separation for 5-hydroxymethylfurfural