checks in gromacs writer to ensure bonds, angles and dihedrals are present