New detectors for the kaon and hypernuclear experiments with KaoS at MAMI and with PANDA at GSI