Detection of Eavesdropping in Quantum Key Distribution using Bell's Theorem and Error Rate Calculations