Performance analysis of cooperative content distribution for wireless ad hoc networks