Liquid cooling with phase change