Analytical solutions for capacitance of a semi-cylindrical capacitive sensor