Optimal control of elliptic PDEs on surfaces of codimension 1