Some unexpected relationships between first, second and third derivative electron repulsion integrals for diatomic and triatomic molecules