Characterization of quantum states: advances in quantum tomography and tests of nonlocality