Optimization of monocrystalline MgxCd1-xTe/MgyCd1-yTe double-heterostructure solar cells