The space of commuting elements in a Lie group and maps between classifying spaces