Occupation number representation of quantum states