Three-dimensional analysis of magnetometer array data