Eclipsing X-ray binary 4U 1538-522 investigated with NuSTAR