Capturing the effects of free surfaces on void strengthening with dislocation dynamics