Predictive modelling of ferroelectric tunnel junctions