Optimum relay operation for railway applications with wide-range electronics and vibration resistance.