On the interaction and pinning of grain boundaries by cubic shaped precipitate particles