On the gravitational content of molecular clouds and their cores