What affects the amount of attraction between molecules?