Testing and preventive maintenance scheduling optimization for aging systems modeled by generalized renewal process