Chern-Simons gauge theory on orbifolds: Open strings from three dimensions