Sensory Optimization: Neural Networks as a Model for Understanding and Creating Art