Automatic generation of CT-like images from CBCT images using a patchwise contrastive learning-based GAN model