An optical region elemental abundance analysis of the chemically peculiar HgMn star chi Lupi