Investigation of loss of synchronism phenomenon in synchronous machines and protection using trajectory of relative speed