Quantum limits on optical resolution