The influence of grain boundary morphology on void formation