Numerical calculation of magnetometric demagnetisation factors for octahedra and other shapes