Electrical and optical characterizations of erbium doped MPS/PANI heterojunctions