How do molecules in a solid differ from those in a liquid or gas