Detection mechanism in sub-micrometer YBCO detectors from X-rays to THz frequency range.