Straightforward field calculations for uniaxial hardmagnetic prisms: stray field distributions and dipolar coupling in regular arrays