Quantum spectral curves, quantum integrable systems and the geometric Langlands correspondence