Characterization of Er in porous Si