A program for determining electron configurations