A new technique for the calculation and 3D visualisation of magnetic complexities on solar satellite images