Inversion of Gravity and Magnetic anomalies of three-dimensional density interfaces, Vertical polygonal cylinders and faults