Court of Appeal overturns state prison smoking ban