The transfer of radiation in galactic nuclei: dusty hot spots in the starburst galaxy M 82