Resonance fluorescence of a two-level atom near a metal surface. Technical report