Coupling between magnetic/nonmagnetic semiconductor quantum dots in double-layer geometry