Effective action of matter fields in four-dimensional string orientifolds