Charge sharing modeling in pixel detectors with capacitive charge division