Study of J/ψ production in p-U, O-U and S-U interactions at 200 GeV per nucleon