Luminescence of lanthanide ions in octahedral coordinations with comparison to the centroid shift and host lattice exciton energy