Efficient and reliable fault analysis methodology for nanomagnetic circuits