Ultrafast semiconductor x-ray detector