Robustness of the 0-π transition against compositional and structural ageing in superconductor/ferromagnetic/superconductor heterostructures