Novel high pressure magnetic measurements with application to magnetite