Study of semiconducting nanomaterials under pressure