Active erbium-doped organic–inorganic waveguide