Quantization of the null-surface formulation of general relativity