On the periods of motives with complex multiplication and a