Local characterization of rare-earth-doped single microspheres by combined microtransmission and microphotoluminescence techniques