Spin alignment of vector mesons in heavy-ion collisions