Quantum information and phase transitions: Fidelity and state distinguishability