Electromagnetic inverse problems for nematic liquid crystals and capacitance imaging