Electrical and optical characterization of Er-doped silicon grown by liquid phase epitaxy