Entanglement in quantum critical phenomena.