Time-dependent optical spectroscopy and imaging for biomedical applications