Observation of CP violation in B0 ---> K+ pi- and B0 ---> pi+ pi-