Resonant tunnelling in superlattices with a basis