Applications of nematic liquid crystals to electric-field sensors