Detection of incipient failures by using geometric approach techniques: an application to railway switching points