An Information-Spectrum Approach to Classical and Quantum Hypothesis Testing for Simple Hypotheses