A condition-based maintenance policy for deteriorating units. An application to the cylinder liners of marine engine