Spin orientation of holes in quantum wells