This video tutorial shows you how to use indirect_diffuse and indirect_specular AOVs from the shadow_matte shader.
A simplified scene file can be downloaded here.