Gauge-independent effective potential for minimally coupled quantum fields in curved space