Stimulated Raman adiabatic passage in an open quantum system: Master equation approach