N.Y. pain doc gets 5 years for bogus scripts