Phase-Resolved Spectroscopy of the Magnetar SGR J1745–2900 Based on Data from the NuSTAR Observatory