text: Title: Update configs to use `dataclasses`
  Body: We have some specific configs for some algorithms, will be nice to update them from using `dicts`/`TypedDict` to `dataclasses`. 
  
  The idea here is to do it in a way that does not break things, so we should have an interface (to/from) between `dict` and the `dataclasses`.
  
  Example of what we can explore for these methods
  ```python
  >>> from dataclasses import dataclass, asdict
  >>> @dataclass
  ... class A:
  ...     b: int
  ... 
  >>> asdict(A(1))
  {'b': 1}
  >>> A(**asdict(A(1)))
  A(b=1)
  ```
  _Originally posted by @johnnv1 in https://github.com/kornia/kornia/pull/2092#discussion_r1049564760_
  
  List of some configs to be replaced:
   - [ ] kornia.feature.adalam.core.AdalamConfig
   - [ ] kornia.contrib.face_detection.FaceDetector.config #2851
   - [ ] kornia.feature.keynet.KeyNet_conf - #2254
   - [ ] [kornia.feature.loftr.loftr.default_cfg](https://github.com/kornia/kornia/blob/2387a2d165a977f1646332d6cbe6b915a4806e37/kornia/feature/loftr/loftr.py#L25)
     - [ ] kornia.feature.loftr.loftr_module.fine_preprocess.FinePreprocess.config
     - [ ] kornia.feature.loftr.loftr_module.transformer.LocalFeatureTransformer.config
     - [ ] kornia.feature.loftr.utils.coarse_matching.CoarseMatching.config
     - [ ] kornia.feature.loftr.utils.supervision config
     - [ ] [kornia.feature.loftr.backbone.resnet_fpn config](https://github.com/kornia/kornia/blob/2387a2d165a977f1646332d6cbe6b915a4806e37/kornia/feature/loftr/backbone/resnet_fpn.py#L50)
   - [ ] kornia.feature.matching._get_default_fginn_params
   - [x] [kornia.feature.sold2.backbones.SOLD2Net.cfg](https://github.com/kornia/kornia/blob/2387a2d165a977f1646332d6cbe6b915a4806e37/kornia/feature/sold2/backbones.py#L377) - #2880
     - [x] [kornia.feature.sold2.sold2.default_cfg](https://github.com/kornia/kornia/blob/2387a2d165a977f1646332d6cbe6b915a4806e37/kornia/feature/sold2/sold2.py#L18)
     - [x] [kornia.feature.sold2.sold2_detector.default_cfg](https://github.com/kornia/kornia/blob/2387a2d165a977f1646332d6cbe6b915a4806e37/kornia/feature/sold2/sold2_detector.py#L17)
     - [ ] #2901
   - [ ] #2908 