The failure probability of components in three-sate networks with applications to age replacement policy