Ex-building inspector gets jail time for extortion scheme