A substance in a solid state has atoms that are