Two-dimensional conformal field theory on open and unoriented surfaces