An equation of state for condensed matter; application to solid chemical elements