Optimal location of facilities on a network with an unreliable node or link