Stark spectroscopy of CdTe and CdMnTe quantum dots embedded in n-i-p diodes