Voltage-controlled magnetic anisotropy under the electronic structure modulation in quantum wells