Ion beam synthesis of nanocrystals and quantum dots in optical materials