SAPE: Spatially-Adaptive Progressive Encoding for Neural Optimization