Age and periodic replacement policies with two failure modes in general replacement models