Compound-glass optical nanowires