Effective channel length estimation using charge-based capacitance measurement