CMRNext: Camera to LiDAR Matching in the Wild for Localization and Extrinsic Calibration