The cofree nonassociative coalgebra