Mapping gravitational-wave backgrounds using methods from CMB analysis: Application to pulsar timing arrays | Synapse