Rare-earth-doped sol-gel waveguides: a review