Optimal replacement in the proportional hazards model and its applications in a product-service system