Modelling preventive maintenance as a decay process for a two-state system