Learning deep and wide: a spectral method for learning deep networks