Construction of fermionic string models in four dimensions