Modelling the chromosphere and transition region of ε Eri (K2 V)