Stereodirected discrete bases in hindered rotor problems: atom-diatom and pendular states