Generation of macroscopic magnetic-field-aligned electric fields by the convection surge ion acceleration mechanism