The optimal lifetime of capital goods and pricing policies for replacement components and repair costs