Nucleic acid binding and chaperone properties of HIV-1 Gag and nucleocapsid proteins