Freedom of information requests showed at least 1,633 newborns in Scotland have received treatment for neonatal abstinence syndrome (NAS).