Convolutional Neural Networks Analyzed via Inverse Problem Theory and Sparse Representations