Observation of CP violation in two-body B(s)0 -meson decays to charged pions and kaons