Theoretical study of stable negative ions of polar molecules: NaH−, LiH−, LiF−, BeO−