Heavy metal glasses and transparent glass-ceramics: preparation, local structure and optical properties