The partial-wave self-consistent-field method for diatomic molecules: Computational formalism and results for small molecules | Synapse