Soft gluon resummation for heavy quark electroproduction