Constraints on the CKM angle gamma in B-0 ->(D)over bar(0)K(*0) and B-0 ->(DK*0)-K-0 from a Dalitz analysis of D-0 and (D)over bar(0) decays to K-S pi(+)pi(-)