Solid–liquid phase transition of nanofluids