What are some factors that affect the geometry of a molecule?