Controlled release of stored optical pulses in an atomic ensemble into two separate photonic channels