Study of CP violation in Dalitz-plot analyses of B0 to K K-KS, B to K K-K , and B to KSKSK