Grand theft is punishable as follows:
(a) When the grand theft involves the theft of a firearm, by imprisonment in the state prison for 16 months, two, or three years.
(b) In all other cases, by imprisonment in a county jail not exceeding one year or pursuant to subdivision (h) of Section 1170.