Sub-pixel energy-weighting techniques for metallic contaminant highlighting in a pharmaceutical hard capsule using a Timepix3 CdZnTe hybrid pixel detector