Measuring direction or magnitude of magnetic fields or magnetic flux using permanent magnets, e.g. balances, torsion devices