Molecular Simulation Approaches to the Study of Thermotropic and Lyotropic Liquid Crystals