Quadratic bell inequalities as tests for multipartite entanglement.