Measurement of cos2 beta in B-0 -> D((*))h(0) decays with a time-dependent Dalitz plot analysis of D -> K-s(0)pi(+)pi(-)