X-ray emission from O-type stars: DH Cep and HD 97434