Classical theory of light scattering by a molecule located near a solid surface