Memory effect of vertically stacked hBN/QDs/hBN structures based on quantum-dot monolayers sandwiched between hexagonal boron nitride layer