Bond order potentials: a study of s- and sp-valent systems