Added safe_log to gravmag.prism to avoid log(0)

In cases where log(0) appear, the limit of the term in the sum is zero
(Nagy et al., 2000). So the safe_log function returns zero for log(0).

Added test cases for potential and gravity around the prism. Missing
tensor and mag.