A theory of resonance tunnelling at film-covered metal electrodes