The effect of solute atoms on the energy and structure of grain boundaries