Potential of a dust grain in a nitrogen plasma with a condensed disperse phase at room and cryogenic temperatures