Terahertz/optical properties of semiconductor quantum wells