Capacitance of a finite cylinder