Optimal preventive maintenance of coherent systems: a generalized polya process approach