Fundamentals of liquid crystals