Integrable generalized spin ladder models based on the SU(1|3) and SU(3|1) algebras