Calculation of ground and excited state potential surfaces of conjugated molecules. I. Formulation and parametrization | Synapse