Optical refractive and reflective properties of resonantly absorbing media