Analysis of spin-dependent tunnelling of electrons in solid state structures using the transfer-Hamiltonian method