Study of thermally-induced optical bistability and the role of surface treatments in Si-based mid-infrared photonic crystal cavities