Spectroscopic properties of rare-earth ions in heavy metal oxide and phosphate-containing glasses