A resistivity computation method for layered earth models | Synapse