Synthesis of rugate-absorbing thin films