Thermally induced stacking of octadecylphosphonic acid self-assembled bilayers