Temperature dependence of luminescence in porous silicon and related materials