Molecular Dynamics in Study of Phase Transitions in Molecular Crystals and Liquid Crystalline Polymers