Melnikov's analysis of time-delayed feedback control in chaotic dynamics