Laser action in selected compounds containing C, N, and H or D