2D-doped silicon detectors for UV/optical/NIR and x-ray astronomy