Generalisation of fluctuation-dissipation theorem to systems with absorbing states