Gauge fixing in string field theory using the Polyakov path integral