The electronic and optical properties of InGaAs/InP and InAlAs/InP superlattices