Double layer in ionic liquids: temperature effect and bilayer model