Processor Architecture Optimization for Spatially Dynamic Neural Networks