Design of capacitive sensors and its applications