Polymorphism, phase transitions, and thermal expansion of K3Lu(PO4)2