A constructive algorithm to maximize the useful life of a mechanical system subjected to ageing, with non-resuppliable spares parts