Temperature switching of cavity modes in InN microcrystals