Plasma-surface interactions in the ZT-40M reversed-field pinch