Calculation of the geometrical capacitance of silicon microstrip structures using a variational approach