The Chandra X-ray view of the power sources in Cepheus A