A study of scaling and geometry effects on the forces between cuboidal and cylindrical magnets using analytical force solutions