Physics of Compact Nonthermal Sources. I. Theory of Radiation Processes