Relationship between the local structure and spontaneous emission probability of Er3+ in silicate, borate, and phosphate glasses