Computer simulation of molten-salt interphases. Effect of a rigid boundary and an applied electric field