An extension of the Aleksandrov-Pucci theorem for unbounded domains