Study of the influence of ester orientation on the thermal stability of the smectic C phase: Simulation investigation.