Comparison between nanofiltration and forward osmosis in the treatment of dye solutions