Stray field computation by inverted finite elements: a new method in micromagnetic simulations