Computer simulations of liquid crystals