Is there a similar law for magnetism that depends on distance between magnetic objects?