Modeling the near-gap refractive index properties of semiconductor multiple quantum wells and superlattices