Modelling of two-and four-terminal thin-film silicon tandem solar cells