Offline Neural Contextual Bandits: Pessimism, Optimization and Generalization