Performance analysis and optimization for chunked network coding based wireless cooperative downloading systems