An APFIM analysis of grain boundaries and precipitation in boron-doped NiAl