Interwell excitons in a lateral potential well in an inhomogeneous electric field