Effect of partial crystallization on the thermal, structural and luminescence properties of Er3+-doped phosphate glasses