Nuclear electric quadrupole interactions in liquids entrapped in cavities