Influence of wall impedance on the electron cyclotron maser instability