Anatomy of prominent B and K decays and signatures of CP-violating new physics in the electroweak penguin sector