Homogeneous line broadening of optical transitions of ions and molecules in glasses