Worldsheet approach to heterotic instantons and solitons