A spectroscopic study on the luminescence of Er in porous silicon