Coherent effects in two-level amplifying and SRS-active media