Fail safe signal processing techaniques using microprocessors and application to desing and devlopment of route interlocking system for railways