Origin of strong red emission in Er3+-based upconversion materials: role of intermediate states and cross relaxation.