Extraction of bulk generation lifetime and surface generation velocity in high-resistivity silicon by means of gated diodes